<script ng-init="initCssAndJs()">
</script>
<script ng-init="initCss('home-page/css/home.css')"></script>
<div class="page" id="page-pre" ng-init="showCollectionList()">
	<div class="content infinite-scroll">
		<div class="tab_top_all">
			<div class="tab_top">
				<div class="icon_img open-panel" id='panel-js-demo' ng-click="getPersonInfo()">
					<img src="page/home-page/img/menu2.png" />
				</div>
				<div class="search_bg">
					<div class="search_img">
						<a href="#/search" ng-click="saveKeyWord()"><img src="page/home-page/img/search2.png" /></a>
					</div>
					<div class="search_input"> <input ng-model="keyWord" value="{{keyWord}}" type="text" placeholder="大家都在搜.." autofocus></div>
				</div>
				<div class="icon_write">
					<a href="#/release">
						<img src="page/home-page/img/write.png" />
					</a>
				</div>
			</div>
			<div style="clear: both"></div>
			<div class="top_four_tips">
				<ul>
					<li class="click_div" ng-click="getAllDynamicsInfo()">全部</li>
					<li ng-click="getAllDynamicsInfo2()">关注</li>
					<li ng-click="getAllDynamicsInfo3()">最新</li>
					<li ng-click="showNearestNews()">最近</li>
				</ul>
			</div>
			<div style="clear: both;"></div>
		</div>
		<div class="content_div ">
			<div class="tab display ">
				<div class="content_release_all">
					<ul>
						<li ng-repeat="dynamicInfo in dynamicsList">
							<div class="content_border_setting">
								<div class="user_top">
									<div class="content_user_img">
										<a href="#/other_home" ng-click="GoToOtherUser(dynamicInfo.user.userId)">
											<img ng-if="!dynamicInfo.user.userAvatarAddress" ng-src="page/home-page/img/avatar.png" />
											<img ng-if="dynamicInfo.user.userAvatarAddress" ng-src="{{dynamicInfo.user.userAvatarAddress}}" />
										</a>
									</div>
									<div class="nickname_distance">
										<div class="user_nickname">{{dynamicInfo.user.userNickName}}</div>
										<div class="distance">想去&nbsp;<i class="fa fa-map-marker"></i>&nbsp;{{dynamicInfo.placeTo}}
										</div>
									</div>
									<div class="time_type">
										<div class="time">{{dynamicInfo.tourdynaDate|date:"yyyy-MM-dd HH:mm:ss"}}</div>

									</div>
								</div>
								<div style="clear: both"></div>
								<div class="release_content">
									<ul>
										<li>{{dynamicInfo.tourdynaContent}}</li>
									</ul>
								</div>
								<div ng-if="dynamicInfo.tourdynaImg" class="img_div">
									<span ng-repeat="img in dynamicInfo.tourdynaImg track by $index">
                                <img ng-src="{{img}}" ng-click="showImg(dynamicInfo.tourdynaImg,$index)"/>
                                    </span>
								</div>
								<div class="release_details">
									<div class="release_one">
										出发地点：{{dynamicInfo.placeFrom}}
									</div>
									<div class="release_two">
										拼车类型：<span ng-if="dynamicInfo.tourdynaType==0">人找车</span><span ng-if="dynamicInfo.tourdynaType==1">车找人</span>
									</div>
								</div>

								<div class="release_details">
									<div class="release_one connect">
										联系方式：{{dynamicInfo.contactway}}
									</div>
									<div class="release_two">
										出发日期：{{dynamicInfo.tourdynaOutTime|date:"yyyy/MM/dd"}}
									</div>
								</div>

								<div class="three_tip">
									<div class="user_distance">距我{{dynamicInfo.distance}}</div>
									<div class="three">
										<ul>
											<li ng-if="dynamicInfo.isLike==1" class="li_div_list" ng-click="reduceLike(dynamicInfo.tourdynaId,$index,1)">
												<div class="fa praise fa-thumbs-o-up" style="color: #fb8d2f;">{{dynamicInfo.tourdynaLikeNum}}
												</div>
											</li>
											<li ng-if="dynamicInfo.isLike!=1" class="li_div_list" ng-click="addLike(dynamicInfo.tourdynaId,$index,1)">
												<div class="fa praise fa-thumbs-o-up">{{dynamicInfo.tourdynaLikeNum}}
												</div>
											</li>
											<li class="li_div_list">
												<a href="#/review" ng-click="GoToReview(dynamicInfo.tourdynaId)"><i class="fa fa-comment-o">{{dynamicInfo.tourdynaCommentNum}}</i>
												</a>
											</li>

											<li ng-if="dynamicInfo.isColl==1" class="li_div_list"><i class="fa fa-heart collection" style="color:#ff576e;">已收藏</i></li>
											<li ng-if="dynamicInfo.isColl!=1" class="li_div_list" ng-click="addCollection(dynamicInfo.tourdynaId,$index,1)"><i class="fa fa-heart-o collection">收藏</i></li>

										</ul>
									</div>
								</div>
								<div style="clear: both;"></div>
							</div>
						</li>
					</ul>
					<!-- 加载提示符 -->
					<div class="infinite-scroll-preloader">
						<div class="preloader"></div>
					</div>
				</div>
			</div>
			<div class="tab hidden">
				<div class="content_release_all">
					<ul>
						<li ng-repeat="dynamicInfo in dynamicsList2">
							<div class="content_border_setting">
								<div class="user_top">
									<div class="content_user_img">
										<a href="#/other_home" ng-click="GoToOtherUser(dynamicInfo.user.userId)">
											<img ng-if="!dynamicInfo.user.userAvatarAddress" ng-src="page/home-page/img/avatar.png" />
											<img ng-if="dynamicInfo.user.userAvatarAddress" ng-src="{{dynamicInfo.user.userAvatarAddress}}" />
										</a>
									</div>
									<div class="nickname_distance">
										<div class="user_nickname">{{dynamicInfo.user.userNickName}}</div>
										<div class="distance">想去&nbsp;<i class="fa fa-map-marker"></i>&nbsp;{{dynamicInfo.placeTo}}
										</div>
									</div>
									<div class="time_type">
										<div class="time">{{dynamicInfo.tourdynaDate|date:"yyyy-MM-dd HH:mm:ss"}}</div>
									</div>
								</div>
								<div style="clear: both"></div>
								<div class="release_content">
									<ul>
										<li>{{dynamicInfo.tourdynaContent}}</li>
									</ul>
								</div>
								<div ng-if="dynamicInfo.tourdynaImg" class="img_div">
									<span ng-repeat="img in dynamicInfo.tourdynaImg track by $index">
                                <img ng-src="{{img}}" ng-click="showImg(dynamicInfo.tourdynaImg,$index)"/>
                                    </span>
								</div>
								<div class="release_details">
									<div class="release_one">
										出发地点：{{dynamicInfo.placeFrom}}
									</div>
									<div class="release_two">
										拼车类型：<span ng-if="dynamicInfo.tourdynaType==0">人找车</span><span ng-if="dynamicInfo.tourdynaType==1">车找人</span>
									</div>
								</div>

								<div class="release_details">
									<div class="release_one connect">
										联系方式：{{dynamicInfo.contactway}}
									</div>
									<div class="release_two">
										出发日期：{{dynamicInfo.tourdynaOutTime|date:"yyyy/MM/dd"}}
									</div>
								</div>

								<div class="three_tip">
									<div class="user_distance">距我{{dynamicInfo.distance}}</div>
									<div class="three">
										<ul>
											<li ng-if="dynamicInfo.isLike==1" class="li_div_list" ng-click="reduceLike(dynamicInfo.tourdynaId,$index,2)">
												<div class="fa praise fa-thumbs-o-up" style="color: #fb8d2f;">{{dynamicInfo.tourdynaLikeNum}}
												</div>
											</li>
											<li ng-if="dynamicInfo.isLike!=1" class="li_div_list" ng-click="addLike(dynamicInfo.tourdynaId,$index,2)">
												<div class="fa praise fa-thumbs-o-up" style="">{{dynamicInfo.tourdynaLikeNum}}
												</div>
											</li>
											<li class="li_div_list">
												<a href="#/review">
													<i class="fa fa-comment-o" ng-click="GoToReview(dynamicInfo.tourdynaId)">{{dynamicInfo.tourdynaCommentNum}}</i>
												</a>
											</li>
											<li ng-if="dynamicInfo.isColl==1" class="li_div_list"><i class="fa fa-heart collection" style="color:#ff576e;">已收藏</i></li>
											<li ng-if="dynamicInfo.isColl!=1" class="li_div_list" ng-click="addCollection(dynamicInfo.tourdynaId,$index,2)"><i class="fa fa-heart-o collection">收藏</i></li>

										</ul>
									</div>
								</div>
								<div style="clear: both;"></div>
							</div>
						</li>
					</ul>
					<!-- 加载提示符 -->
					<div class="infinite-scroll-preloader">
						<div class="preloader"></div>
					</div>
				</div>
			</div>
			<div class="tab hidden">
				<div class="content_release_all">
					<ul>
						<li ng-repeat="dynamicInfo in dynamicsList3">
							<div class="content_border_setting">
								<div class="user_top">
									<div class="content_user_img">
										<a href="#/other_home" ng-click="GoToOtherUser(dynamicInfo.user.userId)">
											<img ng-if="!dynamicInfo.user.userAvatarAddress" ng-src="page/home-page/img/avatar.png" />
											<img ng-if="dynamicInfo.user.userAvatarAddress" ng-src="{{dynamicInfo.user.userAvatarAddress}}" />
										</a>
									</div>
									<div class="nickname_distance">
										<div class="user_nickname">{{dynamicInfo.user.userNickName}}</div>
										<div class="distance">想去&nbsp;<i class="fa fa-map-marker"></i>&nbsp;{{dynamicInfo.placeTo}}
										</div>
									</div>
									<div class="time_type">
										<div class="time">{{dynamicInfo.tourdynaDate|date:"yyyy-MM-dd HH:mm:ss"}}</div>
										<!-- <div ng-if="dynamicInfo.tourdynaType==0" class="type">人找车</div>
                                        <div ng-if="dynamicInfo.tourdynaType==1" class="type">车找人</div>-->
									</div>
								</div>
								<div style="clear: both"></div>
								<div class="release_content">
									<ul>
										<li>{{dynamicInfo.tourdynaContent}}</li>
									</ul>
								</div>
								<div ng-if="dynamicInfo.tourdynaImg" class="img_div">
									<span ng-repeat="img in dynamicInfo.tourdynaImg track by $index">
                                <img ng-src="{{img}}" ng-click="showImg(dynamicInfo.tourdynaImg,$index)"/>
                                    </span>
								</div>
								<div class="release_details">
									<div class="release_one">
										出发地点：{{dynamicInfo.placeFrom}}
									</div>
									<div class="release_two">
										拼车类型：<span ng-if="dynamicInfo.tourdynaType==0">人找车</span><span ng-if="dynamicInfo.tourdynaType==1">车找人</span>
									</div>
								</div>

								<div class="release_details">
									<div class="release_one connect">
										联系方式：{{dynamicInfo.contactway}}
									</div>
									<div class="release_two">
										出发日期：{{dynamicInfo.tourdynaOutTime|date:"yyyy/MM/dd"}}
									</div>
								</div>

								<div class="three_tip">
									<div class="user_distance">距我{{dynamicInfo.distance}}</div>
									<div class="three">
										<ul>
											<li ng-if="dynamicInfo.isLike==1" class="li_div_list" ng-click="reduceLike(dynamicInfo.tourdynaId,$index,3)">
												<div class="fa praise fa-thumbs-o-up" style="color: #fb8d2f;">{{dynamicInfo.tourdynaLikeNum}}
												</div>
											</li>
											<li ng-if="dynamicInfo.isLike!=1" class="li_div_list" ng-click="addLike(dynamicInfo.tourdynaId,$index,3)">
												<div class="fa praise fa-thumbs-o-up" style="">{{dynamicInfo.tourdynaLikeNum}}
												</div>
											</li>
											<li class="li_div_list">
												<a href="#/review">
													<i class="fa fa-comment-o" ng-click="GoToReview(dynamicInfo.tourdynaId)">{{dynamicInfo.tourdynaCommentNum}}</i>
												</a>
											</li>
											<li ng-if="dynamicInfo.isColl==1" class="li_div_list"><i class="fa fa-heart collection" style="color:#ff576e;">已收藏</i></li>
											<li ng-if="dynamicInfo.isColl!=1" class="li_div_list" ng-click="addCollection(dynamicInfo.tourdynaId,$index,3)"><i class="fa fa-heart-o collection">收藏</i></li>

										</ul>
									</div>
								</div>
								<div style="clear: both;"></div>
							</div>
						</li>
					</ul>
					<!-- 加载提示符 -->
					<div class="infinite-scroll-preloader">
						<div class="preloader"></div>
					</div>
				</div>
			</div>
			<div class="tab hidden">
				<div class="content_release_all">
					<ul>
						<li ng-repeat="dynamicInfo in dynamicsList4">
							<div class="content_border_setting">
								<div class="user_top">
									<div class="content_user_img">
										<a href="#/other_home" ng-click="GoToOtherUser(dynamicInfo.user.userId)">
											<img ng-if="!dynamicInfo.user.userAvatarAddress" ng-src="page/home-page/img/avatar.png" />
											<img ng-if="dynamicInfo.user.userAvatarAddress" ng-src="{{dynamicInfo.user.userAvatarAddress}}" />
										</a>
									</div>
									<div class="nickname_distance">
										<div class="user_nickname">{{dynamicInfo.user.userNickName}}</div>
										<div class="distance">想去&nbsp;<i class="fa fa-map-marker"></i>&nbsp;{{dynamicInfo.placeTo}}
										</div>
									</div>
									<div class="time_type">
										<div class="time">{{dynamicInfo.tourdynaDate|date:"yyyy-MM-dd HH:mm:ss"}}</div>
										<!-- <div ng-if="dynamicInfo.tourdynaType==0" class="type">人找车</div>
                                    <div ng-if="dynamicInfo.tourdynaType==1" class="type">车找人</div>-->
									</div>
								</div>
								<div style="clear: both"></div>
								<div class="release_content">
									<ul>
										<li>{{dynamicInfo.tourdynaContent}}</li>
									</ul>
								</div>
								<div ng-if="dynamicInfo.tourdynaImg" class="img_div">
									<span ng-repeat="img in dynamicInfo.tourdynaImg track by $index">
                                <img ng-src="{{img}}" ng-click="showImg(dynamicInfo.tourdynaImg,$index)"/>
                                    </span>
								</div>
								<div class="release_details">
									<div class="release_one">
										出发地点：{{dynamicInfo.placeFrom}}
									</div>
									<div class="release_two">
										拼车类型：<span ng-if="dynamicInfo.tourdynaType==0">人找车</span><span ng-if="dynamicInfo.tourdynaType==1">车找人</span>
									</div>
								</div>

								<div class="release_details">
									<div class="release_one connect">
										联系方式：{{dynamicInfo.contactway}}
									</div>
									<div class="release_two">
										出发日期：{{dynamicInfo.tourdynaOutTime|date:"yyyy/MM/dd"}}
									</div>
								</div>

								<div class="three_tip">
									<div class="user_distance">距我{{dynamicInfo.distance}}</div>

									<div class="three">
										<ul>
											<li ng-if="dynamicInfo.isLike==1" class="li_div_list" ng-click="reduceLike(dynamicInfo.tourdynaId,$index,4)">
												<div class="fa praise fa-thumbs-o-up" style="color: #fb8d2f;">{{dynamicInfo.tourdynaLikeNum}}
												</div>
											</li>
											<li ng-if="dynamicInfo.isLike!=1" class="li_div_list" ng-click="addLike(dynamicInfo.tourdynaId,$index,4)">
												<div class="fa praise fa-thumbs-o-up" style="">{{dynamicInfo.tourdynaLikeNum}}
												</div>
											</li>
											<li class="li_div_list">
												<a href="#/review">
													<i class="fa fa-comment-o" ng-click="GoToReview(dynamicInfo.tourdynaId)">{{dynamicInfo.tourdynaCommentNum}}</i>
												</a>
											</li>
											<li ng-if="dynamicInfo.isColl==1" class="li_div_list"><i class="fa fa-heart collection" style="color:#ff576e;">已收藏</i></li>
											<li ng-if="dynamicInfo.isColl!=1" class="li_div_list" ng-click="addCollection(dynamicInfo.tourdynaId,$index,4)"><i class="fa fa-heart-o collection">收藏</i></li>

										</ul>
									</div>
								</div>
								<div style="clear: both;"></div>
							</div>
						</li>
					</ul>
					<!-- 加载提示符 -->
					<div class="infinite-scroll-preloader">
						<div class="preloader"></div>
					</div>
				</div>
			</div>

		</div>
		<div class="disAndNO" >
			   <div class="loginAndRegister">
				<a href="#/register">
					<div class="register">注册</div>
				</a>
				<a href="#/login">
					<div class="login">登录</div>
				</a>
			</div>
		</div>
	</div>
</div>
<div class="panel panel-left panel-reveal">

	<div class="user_bg">
		<div class="user_img_bg blur">
			<img ng-if="!userInfo.avatarImg.imgAddress" src="page/home-page/img/avatar.png" ">
            <img ng-if="userInfo.avatarImg.imgAddress " ng-src="{{userInfo.avatarImg.imgAddress}} "></div>
        <div class="close close-panel "><img src="page/login-page/img/close4.png "/></div>
        <div class="user_img "><img ng-if="!userInfo.avatarImg.imgAddress " src="page/home-page/img/avatar.png ">
            <img ng-if="userInfo.avatarImg.imgAddress " ng-src="{{userInfo.avatarImg.imgAddress}} "></div>
        <div class="nickname ">{{words}}</div>
        <div class="motto ">{{userDetail}}</div>
    </div>
    <div class="list_all ">
        <div class="list_div list_div1 ">
            <a href="#/personal_home ">
                <div class="icon_list "><i class="fa fa-user-o "></i></div>
                <div class="list_name ">个人主页</div>
            </a>
        </div>
        <div class="list_div " class="icon_list ">
            <a href="#/search ">
                <div class="icon_list "><i class="fa fa-search "></i></div>
                <div class="list_name ">查找</div>
            </a>
        </div>
        <div class="list_div ">
            <a href="#/mycollection ">
                <div class="icon_list " style="margin-left: -0.1rem "><i class="fa fa-heart-o "></i></div>
                <div class="list_name ">我的收藏</div>
            </a>
        </div>
        <div class="list_div ">
            <a href="#/mypraise ">
                <div class="icon_list "><i class="fa fa-thumbs-o-up "></i></div>
                <div class="list_name ">我的点赞</div>
            </a>
        </div>
        <div class="list_div ">
            <div class="icon_list "><i class="fa fa-question-circle-o "></i></div>
            <div class="list_name ">意见反馈</div>
        </div>
        <div class="list_div ">
            <a href="#/settings ">
                <div class="icon_list "><i class="fa fa-gear "></i></div>
                <div class="list_name ">设置</div>
            </a>
        </div>

        <div style="clear: both "></div>
    </div>
</div>

<div ng-init="suiMobileInit( 'home-page/js/home.js') "></div>